import FormItem, { FormItemProps } from '@/components/form-item';
import { Input, InputProps } from 'antd';
import { FC } from 'react';

export interface InputItemProps extends FormItemProps {
  inputProps?: InputProps;
}

const InputItem: FC<InputItemProps> = ({ inputProps, ...restProps }) => (
  <FormItem {...restProps}>
    <Input placeholder="请输入" autoComplete="off" {...inputProps} />
  </FormItem>
);

export default InputItem;
